<script setup lang="ts">
import pinia from '@/stores/index'
import { storeToRefs } from 'pinia'
import { useViewTags } from "@/layout/stores/view-tags";
const viewTagsStore = useViewTags(pinia);
const { cachedViews } = storeToRefs(viewTagsStore)



</script>
<script lang="ts">
// 路由直接嵌套
export default {
  name: "DirectNest",
};
</script>


<template>
  <router-view v-slot="{ Component }">
    <keep-alive :include="cachedViews">
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>

<style></style>
